<?php

namespace Framework\auth\bean;
/**
 * Class RedisConfigBean
 * @package Framework\auth\bean
 * @author 飞鸟和鱼
 */
class RedisConfigBean
{
    /**
     * @var string 连接地址
     */
    private $host = "127.0.0.1";

    /**
     * @var int 端口号
     */
    private $prot = 6379;

    /**
     * @var int 连接超时时间
     */
    private $timeout = 0;

    /**
     * @var string 认证密码
     */
    private $pass = "";

    /**
     * @return string
     */
    public function getHost(): string
    {
        return $this->host;
    }

    /**
     * @param string $host
     */
    public function setHost(string $host): void
    {
        $this->host = $host;
    }

    /**
     * @return int
     */
    public function getProt(): int
    {
        return $this->prot;
    }

    /**
     * @param int $prot
     */
    public function setProt(int $prot): void
    {
        $this->prot = $prot;
    }

    /**
     * @return int
     */
    public function getTimeout(): int
    {
        return $this->timeout;
    }

    /**
     * @param int $timeout
     */
    public function setTimeout(int $timeout): void
    {
        $this->timeout = $timeout;
    }

    /**
     * @return string
     */
    public function getPass(): string
    {
        return $this->pass;
    }

    /**
     * @param string $pass
     */
    public function setPass(string $pass): void
    {
        $this->pass = $pass;
    }


}